package Limit.BuffDoll;

public class BuffDoll_Info_Load {
	private int _ItemID;
	private int _Level;
	private double _Percent;
	private int _Place1;
	private int _Place2;
	private int _Place3;
	private int _Place4;
	private int _Place5;
	private int _Place6;
	private int _Doll1;
	private int _Doll2;
	private boolean _Place1Use;
	private boolean _Place2Use;
	private boolean _Place3Use;
	private boolean _Place4Use;
	private boolean _Place5Use;
	private boolean _Place6Use;
	private boolean _Place5Pay;
	private boolean _Place6Pay;
	private boolean _Doll2Pay;
	private boolean _Auto_Res;
	private int _ChangePlace;
	private int _ChangeDoll;
	private int _MP;
	
	public int getItemID(){
		return _ItemID;
	}
	
	public void setItemID(int i){
		_ItemID = i;
	}
	
	public int getLevel(){
		return _Level;
	}
	
	public void setLevel(int i){
		_Level = i;
	}
	
	public double getPercent(){
		return _Percent;
	}
	
	public void setPercent(double i){
		_Percent = i;
	}
	
	public int getPlace1(){
		return _Place1;
	}
	
	public void setPlace1(int i){
		_Place1 = i;
	}
	
	public int getPlace2(){
		return _Place2;
	}
	
	public void setPlace2(int i){
		_Place2 = i;
	}
	
	public int getPlace3(){
		return _Place3;
	}
	
	public void setPlace3(int i){
		_Place3 = i;
	}
	
	public int getPlace4(){
		return _Place4;
	}
	
	public void setPlace4(int i){
		_Place4 = i;
	}
	
	public int getPlace5(){
		return _Place5;
	}
	
	public void setPlace5(int i){
		_Place5 = i;
	}
	
	public int getPlace6(){
		return _Place6;
	}
	
	public void setPlace6(int i){
		_Place6 = i;
	}
	
	public int getDoll1(){
		return _Doll1;
	}
	
	public void setDoll1(int i){
		_Doll1 = i;
	}
	
	public int getDoll2(){
		return _Doll2;
	}
	
	public void setDoll2(int i){
		_Doll2 = i;
	}
	
	public boolean getPlace1Use(){
		return _Place1Use;
	}
	
	public void setPlace1Use(boolean i){
		_Place1Use = i;
	}
	
	public boolean getPlace2Use(){
		return _Place2Use;
	}
	
	public void setPlace2Use(boolean i){
		_Place2Use = i;
	}
	
	public boolean getPlace3Use(){
		return _Place3Use;
	}
	
	public void setPlace3Use(boolean i){
		_Place3Use = i;
	}
	
	public boolean getPlace4Use(){
		return _Place4Use;
	}
	
	public void setPlace4Use(boolean i){
		_Place4Use = i;
	}
	
	public boolean getPlace5Use(){
		return _Place5Use;
	}
	
	public void setPlace5Use(boolean i){
		_Place5Use = i;
	}
	
	public boolean getPlace6Use(){
		return _Place6Use;
	}
	
	public void setPlace6Use(boolean i){
		_Place6Use = i;
	}
	
	public boolean getPlace5Pay(){
		return _Place5Pay;
	}
	
	public void setPlace5Pay(boolean i){
		_Place5Pay = i;
	}
	
	public boolean getPlace6Pay(){
		return _Place6Pay;
	}
	
	public void setPlace6Pay(boolean i){
		_Place6Pay = i;
	}
	
	public boolean getDoll2Pay(){
		return _Doll2Pay;
	}
	
	public void setDoll2Pay(boolean i){
		_Doll2Pay = i;
	}
	
	public boolean getAuto_Res(){
		return _Auto_Res;
	}
	
	public void setAuto_Res(boolean i){
		_Auto_Res = i;
	}
	
	public int getChangePlace(){
		return _ChangePlace;
	}
	
	public void setChangePlace(int i){
		_ChangePlace = i;
	}
	
	public int getChangeDoll(){
		return _ChangeDoll;
	}
	
	public void setChangeDoll(int i){
		_ChangeDoll = i;
	}
	
	public int getMP(){
		return _MP;
	}
	
	public void setMP(int i){
		_MP = i;
	}
	
	public String[] getInfo(String name, String mp, String maxmp, String status, String heal){
		/** 0名稱/ 1現在魔力/ 2總魔力/ 3狀態/ 4等級/ 5%/ 
		 * 6技能1是否開啟左圖/ 7技能1/ 8技能1是否開啟右圖/  9技能2是否開啟左圖/ 10技能2/ 11技能2是否開啟右圖/
		  	 12技能3是否開啟左圖/ 13技能3/ 14技能3是否開啟右圖/  15技能4是否開啟左圖/ 16技能4/ 17技能4是否開啟右圖/
		  	  18技能5是否開啟左圖/ 19技能5/ 20技能5是否開啟右圖/  21技能6是否開啟左圖/ 22技能6/ 23技能6是否開啟右圖/
		  	   24治癒%設定/ 25合拼娃娃1/ 26合拼娃娃2/
		  	    27自動使用藍水是否開啟左圖/28自動使用藍水是否開啟右圖/
		 * 
		 */
		String[] htmldata = new String[29];
		htmldata[0] = name;
		htmldata[1] = mp;
		htmldata[2] = maxmp;
		htmldata[3] = status;
		htmldata[4] = "" + getLevel();
		htmldata[5] = "" + getPercent();

		//技能1是否開啟左圖
		if (getPlace1Use())
			htmldata[6] = "1023";
		else
			htmldata[6] = "1025";

		//技能1是否開
		if (getPlace1() != 0)
			htmldata[7] = "" + getPlace1();
		else
			htmldata[7] = "1027";
		//技能1是否開啟右圖
		if (getPlace1Use())
			htmldata[8] = "1024";
		else
			htmldata[8] = "1026";
		//技能2是否開啟左圖
		if(getPlace2Use())
			htmldata[9] = "1023";
		else
			htmldata[9] = "1025";
		//技能2是否開
		if(getLevel() < 3)
			htmldata[10] = "1034";	
		else {
			if(getPlace2() != 0)
				htmldata[10] = "" + getPlace2();
			else 
				htmldata[10] = "1027";
		}
		//技能2是否開啟右圖
		if (getPlace2Use())
			htmldata[11] = "1024";
		else
			htmldata[11] = "1026";
		//技能3是否開啟左圖
		if(getPlace3Use())
			htmldata[12] = "1023";
		else
			htmldata[12] = "1025";
		//技能3是否開
		if(getLevel() < 6)
			htmldata[13] = "1035";	
		else {
			if(getPlace3() != 0)
				htmldata[13] = "" + getPlace3();
			else 
				htmldata[13] = "1027";
		}
		//技能3是否開啟右圖
		if (getPlace3Use())
			htmldata[14] = "1024";
		else
			htmldata[14] = "1026";
		//技能4是否開啟左圖
		if(getPlace4Use())
			htmldata[15] = "1023";
		else
			htmldata[15] = "1025";
		//技能4是否開啟
		if(getLevel() < 10)
			htmldata[16] = "1036";	
		else {
			if(getPlace4() != 0)
				htmldata[16] = "" + getPlace4();
			else 
				htmldata[16] = "1027";
		}
		//技能4是否開啟右圖
		if (getPlace4Use())
			htmldata[17] = "1024";
		else
			htmldata[17] = "1026";
		//技能5是否開啟左圖
		if(getPlace5Use())
			htmldata[18] = "1023";
		else
			htmldata[18] = "1025";
		//技能5是否開啟
		if(!getPlace5Pay())
			htmldata[19] = "1037";	
		else {
			if(getPlace5() != 0)
				htmldata[19] = "" + getPlace5();
			else 
				htmldata[19] = "1027";
		}
		//技能5是否開啟右圖
		if (getPlace5Use())
			htmldata[20] = "1024";
		else
			htmldata[20] = "1026";
		//技能6是否開啟左圖
		if(getPlace6Use())
			htmldata[21] = "1023";
		else
			htmldata[21] = "1025";
		//技能6是否開啟
		if(!getPlace6Pay())
			htmldata[22] = "1037";	
		else {
			if(getPlace6() != 0)
				htmldata[22] = "" + getPlace6();
			else 
				htmldata[22] = "1027";
		}
		//技能6是否開啟右圖
		if (getPlace6Use())
			htmldata[23] = "1024";
		else
			htmldata[23] = "1026";
		//治癒設定%
		htmldata[24] = heal;
		//合拼娃娃1
		if (getDoll1() != 0)
			htmldata[25] = "" + dollimg(getDoll1());
		else
			htmldata[25] = "1032";
		//合拼娃娃1
		if (getDoll2Pay()){
			if (getDoll2() != 0)
				htmldata[26] = "" + dollimg(getDoll2());
			else
				htmldata[26] = "1032";
		} else {
			htmldata[26] = "1033";
		}
		//自動藍水左
		if (getAuto_Res())
			htmldata[27] = "1023";
		else
			htmldata[27] = "1025";
		if (getAuto_Res())
			htmldata[28] = "1024";
		else
			htmldata[28] = "1026";
		return htmldata;
	}
	
	private int dollimg(int dollid){
		int i = 0;
		i = dollid - 58494;
		if (dollid == 70042)
			i = 1539;
		return i;
	}
}
